﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using bdnt_pets_system.FailureServiceReference;
using bdnt_pets_system.Tools;

namespace bdnt_pets_system.MyUserControls
{
    public partial class MyMatePart : UserControl
    {
        public MyMatePart()
        {
            InitializeComponent();
            if (SessionManager.IsCN_ZH)
                tbPartName.SetBinding(TextBlock.TextProperty, new System.Windows.Data.Binding("PartName") { Mode = System.Windows.Data.BindingMode.TwoWay });
            else tbPartName.SetBinding(TextBlock.TextProperty, new System.Windows.Data.Binding("en_PartName") { Mode = System.Windows.Data.BindingMode.TwoWay });
        }
        public void BindData(Tbl_MatePart cuMp)
        {
            this.DataContext = cuMp;
        }
    }
}
